import { Component, OnInit, ViewChild } from '@angular/core';
import { MessagesListComponent } from '../messages-list/messages-list.component';

@Component({
  selector: 'app-messages-view',
  templateUrl: './messages-view.component.html',
  styleUrls: ['./messages-view.component.less'],
})
export class MessagesViewComponent implements OnInit {
  /**
   * 详情组件
   */
  @ViewChild('messagesListComponent', null)
  messagesListComponent: MessagesListComponent;

  constructor() {}

  ngOnInit() {}

  /**
   * 新增
   */
  add(): void {
    this.messagesListComponent.create();
  }
}
